//
//  Common.swift
//  weibo
//
//  Created by 罗李苏 on 16/5/21.
//  Copyright © 2016年 Apple. All rights reserved.
//

import UIKit

//在同一个命名空间下 所有的文件默认贡献
//屏幕的宽和高
let ScreenWidth = UIScreen.mainScreen().bounds.width
let ScreenHeight = UIScreen.mainScreen().bounds.height


//用户登录授权配置信息
//let client_id = "2760785724"//老师的
//let client_id = "3868198962"//大姐的
//let client_secret = "8e8694345eb6cd09eb8cbd234c715c53"//老师的
//let client_secret = "64bedb0435dcd8653227968438d43437"//大姐的

let client_id = "506602735"
let client_secret = "54eb698b88672d16e0860df81d9473be"
let redirect_uri = "http://www.itheima.com"

//定义通知的名称
let SwitchRootViewController = "SwitchRootViewController"

//定义通用错误信息
let AppErrorTip = "网络君正在睡觉,请稍后再试"
let sharedDF = NSDateFormatter()
//随机色
func randomColor() -> UIColor {
    let red = CGFloat(random() % 256) / 255.0
    let blue = CGFloat(random() % 256) / 255.0
    let green = CGFloat(random() % 256) / 255.0
    
    return UIColor(red: red, green: green, blue: blue, alpha: 1)
}